import request from '@/request/request'

// 查询顶部底部导航栏列表
export function navigatorList(params) {
    return request({
        url: '/dev-api/system/navigation/list',
        method: 'get',
        params
    })
}
// 查询顶部底部导航栏列表1
export function navigaatorList(params) {
    return request({
        url: '/dev-api/system/navigation/listAll',
        method: 'get',
        params,
        headers: {
            enterprise_id: "1581868639098753026",
            source_name: "25dea081aeb34f8e88f467a3306c33fa",
          },
    })
}
// 查询顶部底部导航栏新增
export function navigatorAdd(data) {
    return request({
        url: '/dev-api/system/navigation',
        method: 'post',
        data,
      
    })
}
// 查询顶部底部导航栏修改
export function navigatorEdit(data) {
    return request({
        url: '/dev-api/system/navigation',
        method: 'put',
        data
    })
}
// 查询顶部底部导航栏删除
export function navigatorDelete(id) {
    return request({
        url: '/dev-api/system/navigation/batch/'+id,
        method: 'DELETE',
    })
}
// 查询顶部底部导航栏详情
export function navigatorDetail(id) {
    return request({
        url: '/dev-api/system/navigation/'+id,
        method: 'get',
    })
}
